home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 March / CHIP Mart 1997.iso / SurfCam / SURFCAM.Z / POSTFORM.L < prev    next >
Encoding:
Text File  |  1996-04-01  |  45.0 KB  |  1,642 lines

  1. name Cincinatti
  2.  
  3. O >4
  4. N >3
  5. G >2
  6. X ->34
  7. Z ->34
  8. D >2
  9. I ->34
  10. K ->34
  11. U ->34
  12. W ->34
  13. P ->34
  14. Q ->34
  15. R ->34
  16. F >33
  17. V 2
  18. T 4
  19. S >4
  20. M >2
  21.  
  22. ModalGs 0 1 2 3 73 76 80 81 82 83 84 85  # List of g codes that are modal    
  23.  
  24. First#? N                             # Y or N  'Output 1st sequence no.  
  25. Sequence#s N 1 10 10                  # Char, freq, incr & start          
  26.  
  27. Comment ( )                           # Begin End comment char.           
  28.  
  29. HCode Z                               # X or X U  'Horizontal char.       
  30. VCode X                               # Y or Y V  'Vertical char.         
  31. FeedCode F                            # Feed rate char.                   
  32.  
  33. Spindle 13 14 19                      # Cw, ccw & stop m codes            
  34. Coolant 8 9 7                         # On, Off & Mist m codes            
  35. SpeedType G 97 96                     # CSS and RPM g codes               
  36. FeedType G 95 94                      # IPR & IPM g codes                 
  37.  
  38.  
  39. ByDiameter? N                         # Y or N  'Output X val. by diameter
  40. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  41. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  42.  
  43. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  44.  
  45. Inch/MM 70 71                         # Inch & Metric g codes             
  46.  
  47. CtrCode K I                           # I J or R or I J K L               
  48.  
  49. Feed G21                              # Linear move                       
  50. Rapid G0                              # Rapid positioning word            
  51. Cw G22                                # Circular move clockwise           
  52. Ccw G23                               # Circular move counter clockwise   
  53.  
  54. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  55.  
  56. Drill                                 # Drilling canned/manual cycle      
  57. G0 Z[SClear]
  58. G1 Z[H]
  59. G0 Z[SClear]
  60. end
  61.  
  62. Peck                                  # Pecking canned/manual cycle       
  63. none
  64. end
  65.  
  66. Tap                                   # Tapping canned/manual cycle       
  67. G84 Z[H] F[FRate]
  68. end cancel
  69.  
  70. Ream                                  # Reaming canned/manual cycle       
  71. G85 Z[H] F[FRate]
  72. end cancel
  73.  
  74. Bore                                  # Boring canned/manual cycle        
  75. G74 R0
  76. G74 Z[H] R[SClear] F[FRate]
  77. end
  78.  
  79. Cancel                                # Cancel a canned/manual cycle      
  80. G80
  81. end
  82.  
  83. StartCode                             # Start of the program              
  84. end
  85.  
  86. 1stToolChange                         # First tool change                 
  87. O[Comp] G90 S[Speed] M42
  88. G[FeedType] M31
  89. G92 S[MaxRPM]
  90. G0 X.4 Z.4
  91. M[Direct]
  92. V77 T[Tool] M6
  93. G0 X[V] Z[H] M32
  94. G[SpeedType] R[V] S[Speed]
  95. End
  96.  
  97. Infeed                                # Enable cutter comp                
  98. G21 X[V] Z[H] D[Dcomp] F[FRate]
  99. end
  100.  
  101. Outfeed                               # Disable cutter comp               
  102. G21 X[V] Z[H] F[FRate]
  103. end
  104. AutoThread                            # Automatic thread canned cycle     
  105. G33
  106. End
  107.  
  108. ToolChange                            # Secondary tool changes            
  109. O[Comp] G90 S[Speed] M42
  110. G[FeedType] M31
  111. G92 S[MaxRPM]
  112. G0 X.4 Z.4
  113. M[Direct]
  114. V77 T[Tool] M6
  115. G0 X[V] Z[H] M32
  116. G[SpeedType] R[V] S[Speed]
  117. End
  118.  
  119. EndCode                               # End of the program                
  120. G0 X[EndV] Z[EndH]
  121. M30
  122. End
  123.  
  124. name Citizen F10 Screw machine
  125.  
  126. O >4
  127. N >3
  128. G >2
  129. X ->3.>4
  130. Z ->3.>4
  131. D >2
  132. I ->3.>4
  133. K ->3.>4
  134. U ->3.>4
  135. W ->3.>4
  136. P ->3.>4
  137. Q ->3.>4
  138. R ->3.>4
  139. F >3.>5
  140. T >2
  141. S >2
  142. M >2
  143.  
  144. ModalGs 0 1 2 3 4                     # List of g codes that are modal    
  145.  
  146. Sequence#s N 1 10 10                  # Char, freq, incr & start          
  147. First#? N                             # Y or N  'Output 1st sequence no.  
  148.  
  149. Comment ( )                           # Begin End comment char.           
  150.  
  151. HCode Z                               # X or X U  'Horizontal char.       
  152. VCode X                               # Y or Y V  'Vertical char.         
  153. FeedCode F                            # Feed rate char.                   
  154.  
  155. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  156. Coolant 52 53 52                      # On, Off & Mist m codes            
  157. SpeedType G 97 96                     # CSS and RPM g codes               
  158. FeedType G 95 94                      # IPR & IPM g codes                 
  159.  
  160. ByDiameter? Y                         # Y or N  'Output X val. by diameter
  161.  
  162. RevSigns Z K                          # List of letters to reverse signs
  163.  
  164. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  165. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  166.  
  167. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  168.  
  169. Inch/MM 20 21                         # Inch & Metric g codes             
  170.  
  171. CtrCode K I                           # I J or R or I J K L               
  172.  
  173. Feed G1                               # Linear move                       
  174. Rapid G0                              # Rapid positioning word            
  175. Cw G2                                 # Circular move clockwise           
  176. Ccw G3                                # Circular move counter clockwise   
  177.  
  178. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  179.  
  180.  
  181. Peck                                  # Pecking canned/manual cycle       
  182. none
  183. end
  184.  
  185. Tap                                   # Tapping canned/manual cycle       
  186. G84 Z[H] F[FRate]
  187. end
  188.  
  189. Ream                                  # Reaming canned/manual cycle       
  190. G85 Z[H] F[FRate]
  191. end
  192.  
  193. AutoThread                            # Automatic thread canned cycle     
  194. G33
  195. End
  196.  
  197. Bore                                  # Boring canned/manual cycle        
  198. G74 R0
  199. G74 Z[H] R[SClear] F[FRate]
  200. end
  201.  
  202. Cancel                                # Cancel a canned/manual cycle      
  203. G80
  204. end
  205.  
  206. StartCode                             # Start of the program              
  207. O[Program#]
  208. G0 G[Unitmode] G99 M6
  209. G69
  210. G50 X[-.06] Z0
  211. End
  212.  
  213. 1stToolChange                         # First tool change                 
  214. G[FeedType] G[SpeedType] M[Direct] S[Speed]
  215. G0 Z[SClear]
  216. T[Tool]
  217. G68
  218. M[Cool]
  219. G0 X[V] Z[SClear]
  220. T[Comp]
  221. End
  222.  
  223. Infeed                                # Enable cutter comp                
  224. G1 X[V] Z[H] D[Dcomp] F[FRate]
  225. end
  226.  
  227. Outfeed                               # Disable cutter comp               
  228. G1 X[V] Z[H]
  229. end
  230. Drill                                 # Drilling canned/manual cycle      
  231. G0 X[-1]
  232. G1 Z[H] U0 F[FRate]
  233. G0 Z[SClear] T0
  234. end
  235.  
  236. ToolChange                            # Secondary tool changes            
  237. T0
  238. T[Tool]
  239. G[FeedType] G[SpeedType] M[Direct] S[Speed]
  240. M[Cool]
  241. G0 Z[SClear]
  242. G68
  243. T[Comp]
  244. End
  245.  
  246. EndCode                               # End of the program                
  247. M7
  248. G0 X[-.06] Z0 T0
  249. M2
  250. End
  251.  
  252. name Fanuc 0T
  253.  
  254. % 00
  255. O >4
  256. N >3
  257. G >2
  258. X ->3.>4
  259. Z ->3.>4
  260. D 2
  261. I ->3.>4
  262. K ->3.>4
  263. U ->3.>4
  264. W ->3.>4
  265. P ->3.>4
  266. A 60 P
  267. Q ->3.>4
  268. q >4 Q
  269. R ->3.>4
  270. F >3.>6
  271. T 2
  272. t 2
  273. S >4
  274. M >2
  275.  
  276. ModalGs 0 1 2 3 73 76 80 81 82 83 84 85  # List of g codes that are modal    
  277.  
  278. First#? N                             # Y or N  'Output 1st sequence no.  
  279. Sequence#s N 0 1 1                    # Char, freq, incr & start          
  280. Comment ( )                           # Begin End comment char.           
  281.  
  282. HCode Z                               # X or X U  'Horizontal char.       
  283. VCode X                               # Y or Y V  'Vertical char.         
  284. FeedCode F                            # Feed rate char.                   
  285.  
  286. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  287. Coolant 8 9 7                         # On, Off & Mist m codes            
  288. SpeedType G 97 96                     # CSS and RPM g codes               
  289. FeedType G 95 94                      # IPR & IPM g codes                 
  290. Dcomp 41 42 40                        # Left, Right & Cancel m codes      
  291.  
  292. ByDiameter? Y                         # Y or N  'Output X val. by diameter
  293. RevSigns X I                          # List of letters to reverse signs
  294. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  295. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  296. Inch/MM 20 21                         # Inch & Metric g codes             
  297.  
  298. CtrCode K I                           # I J or R or I J K L               
  299.  
  300. Feed G1                               # Linear move                       
  301. Rapid G0                              # Rapid positioning word            
  302. Cw G3                                 # Circular move clockwise           
  303. Ccw G2                                # Circular move counter clockwise   
  304.  
  305. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  306.  
  307. Drill                                 # Drilling canned/manual cycle      
  308. G74 R[Depth]
  309. G74 Z[Depth] F[FRate]
  310. end
  311.  
  312. Peck                                  # Pecking canned/manual cycle       
  313. G74 R[Depth]
  314. G74 Z[H] Q[SBite] F[FRate]
  315. end
  316.  
  317. Tap                                   # Tapping canned/manual cycle       
  318. G84 Z[H] F[FRate]
  319. end cancel
  320.  
  321. Ream                                  # Reaming canned/manual cycle       
  322. G85 Z[H] F[FRate]
  323. end cancel
  324.  
  325. Bore                                  # Boring canned/manual cycle        
  326. G74 R0
  327. G74 Z[H] R[SClear] F[FRate]
  328. end
  329.  
  330. AutoThread                            # Automatic thread canned cycle     
  331. G76 A[TParams] Q[VBite] R0
  332. G76 X[V] Z[H] R[StartAng] P[Depth] q[Peck1] F[Frate]
  333. end
  334.  
  335. Cancel                                # Cancel a canned/manual cycle      
  336. G80
  337. end
  338.  
  339. StartCode                             # Start of the program              
  340. %0
  341. O[Program#]
  342. end
  343.  
  344. 1stToolChange                         # First tool change                 
  345. T[Tool]
  346. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  347. G0 X[V] Z[H] T[Tool] t[Dcomp] M[Cool]
  348. End
  349.  
  350. Infeed                                # Enable cutter comp                
  351. G1 G[Side] X[V] Z[H] D[Dcomp] F[FRate]
  352. end
  353.  
  354. Outfeed                               # Disable cutter comp               
  355. G1 X[V] Z[H] F[FRate]
  356. end
  357.  
  358. ToolChange                            # Secondary tool changes            
  359. G0 Z[ToolH] T[Tool] t0 M9
  360. M1
  361. T[Tool]
  362. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  363. G0 X[V] Z[H] T[Tool] t[Dcomp] M[Cool]
  364. End
  365.  
  366. EndCode                               # End of the program                
  367. G0 X[ToolH] Z[ToolH] T[Tool] t0 M9
  368. M5
  369. M30
  370. %0
  371. End
  372.  
  373. Replace "t" with ""
  374.  
  375. name Fanuc 10T
  376.  
  377. % 00
  378. O >4
  379. N >3
  380. G >2
  381. X ->3.>4
  382. Z ->3.>4
  383. D >2
  384. I ->3.>4
  385. K ->3.>4
  386. U ->3.>4
  387. W ->3.>4
  388. A 60 P
  389. P ->3.>4
  390. Q ->3.>4
  391. q >4 Q
  392. R ->3.>4
  393. F >3.>3
  394. T 2
  395. t 2
  396. S >4
  397. M >2
  398.  
  399. ModalLetters X Z I K F S M            # List of letters that are modal    
  400.  
  401. ModalGs 0 1 2 3 80 81 82 83 84 85     # List of g codes that are modal    
  402.  
  403. Sequence#s N 0 1 1                    # Char, freq, incr & start          
  404. First#? N                             # Y or N  'Output 1st sequence no.  
  405. Last#? N                              # Y or N  'Output last sequence no. 
  406.  
  407. HCode Z                               # X or X U  'Horizontal char.       
  408. VCode X                               # Y or Y V  'Vertical char.         
  409. FeedCode F                            # Feed rate char.                   
  410.  
  411. Comment ( )                           # Begin End comment char.           
  412.  
  413. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  414. Coolant 8 9 7                         # On, Off & Mist m codes            
  415. SpeedType G 97 96                     # CSS and RPM g codes               
  416. FeedType G 95 94                      # IPR & IPM g codes                 
  417. Dcomp 41 42 40                        # Left, Right & Cancel m codes      
  418.  
  419. Feed G1                               # Linear move                       
  420. Rapid G0                              # Rapid positioning word            
  421. Cw G2                                 # Circular move clockwise           
  422. Ccw G3                                # Circular move counter clockwise   
  423.  
  424. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  425.  
  426. Inch/MM 20 21                         # Inch & Metric g codes             
  427.  
  428. CtrCode R                             # I J or R or I J K L               
  429.  
  430. ByDiameter? Y                         # Y or N  'Output X val. by diameter
  431. RevSigns X                            # List of letters to reverse signs
  432. Spaces? N                             # Y or N  'Spaces between words     
  433.  
  434. Incremental? N                        # Y or N  'Inc or abs output        
  435. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  436. ByQuadrants? Y                        # Y or N  'Break arcs at quadrants  
  437.  
  438. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  439.  
  440. Drill                                 # Drilling canned/manual cycle      
  441. G74 R[Depth]
  442. G74 Z[Depth] F[FRate]
  443. end
  444.  
  445. Peck                                  # Pecking canned/manual cycle       
  446. G74 R[Depth]
  447. G74 Z[H] Q[SBite] F[FRate]
  448. end
  449.  
  450. Tap                                   # Tapping canned/manual cycle       
  451. G84 Z[H] F[FRate]
  452. end
  453.  
  454. Ream                                  # Reaming canned/manual cycle       
  455. G85 Z[H] F[FRate]
  456. end
  457.  
  458. Bore                                  # Boring canned/manual cycle        
  459. G74 R0
  460. G74 Z[H] R[SClear] F[FRate]
  461. end
  462.  
  463. AutoThread                            # Automatic thread canned cycle     
  464. G76 A[TParams] Q[VBite] R0
  465. G76 X[V] Z[H] P[Peck1] Q[VLeave] R0 F[Frate]
  466. end
  467.  
  468. Cancel                                # Cancel a canned/manual cycle      
  469. G80
  470. end
  471.  
  472. StartCode                             # Start of the program              
  473. %0
  474. O[Program#]
  475. End
  476.  
  477. 1stToolChange                         # First tool change                 
  478. G0 X[Val1] Z[Val2]
  479. T[Tool] t0
  480. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  481. G0 X[V] Z[H] T[Tool] t[Dcomp] M[Cool]
  482. End
  483.  
  484. Infeed                                # Enable cutter comp                
  485. G1 G41 X[V] Z[H] D[Dcomp] F[FRate]
  486. end
  487.  
  488. Outfeed                               # Disable cutter comp               
  489. G1 G40 X[V] Z[H] F[FRate]
  490. end
  491.  
  492. ToolChange                            # Secondary tool changes            
  493. G0 T[LastTool] t0 Z[Val2] M5
  494. T[Tool] t0
  495. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  496. G0 X[V] Z[H] T[Tool] t[Dcomp] M[Cool]
  497. End
  498.  
  499. EndCode                               # End of the program                
  500. G0 X[Val1] Z[Val2] T[Tool] t0 M5
  501. M30
  502. %0
  503. End
  504.  
  505. Ask [Val1] " Enter the X [radius] home value: " "5.0"
  506. Ask [Val2] " Enter the Z home value: " "10.0"
  507.  
  508. Replace "t" with ""
  509.  
  510. name Fanuc 5T
  511.  
  512. O >4
  513. N >3
  514. G >2
  515. X ->3.>4
  516. Z ->3.>4
  517. D >2
  518. I ->3.>4
  519. K ->3.>4
  520. U ->3.>4
  521. W ->3.>4
  522. P ->3.>4
  523. A 60 P
  524. Q ->3.>4
  525. q >4 Q
  526. R ->3.>4
  527. F >3.>3
  528. T 2
  529. S >4
  530. M >2
  531.  
  532. RevSigns X I                          # List of letters to reverse signs  
  533.  
  534. ModalGs 0 1 2 3 73 76 80 81 82 83 84 85  # List of g codes that are modal    
  535.  
  536. First#? N                             # Y or N  'Output 1st sequence no.  
  537. Sequence#s N 0 1 1                    # Char, freq, incr & start          
  538.  
  539. Comment ( )                           # Begin End comment char.           
  540.  
  541. HCode Z                               # X or X U  'Horizontal char.       
  542. VCode X                               # Y or Y V  'Vertical char.         
  543. FeedCode F                            # Feed rate char.                   
  544.  
  545. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  546. Coolant 8 9 7                         # On, Off & Mist m codes            
  547. SpeedType G 97 96                     # CSS and RPM g codes               
  548. FeedType G 95 94                      # IPR & IPM g codes                 
  549.  
  550. ByDiameter? Y                         # Y or N  'Output X val. by diameter
  551.  
  552. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  553. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  554.  
  555. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  556.  
  557. Inch/MM 20 21                         # Inch & Metric g codes             
  558.  
  559. CtrCode K I                           # I J or R or I J K L               
  560.  
  561. Feed G1                               # Linear move                       
  562. Rapid G0                              # Rapid positioning word            
  563. Cw G2                                 # Circular move clockwise           
  564. Ccw G3                                # Circular move counter clockwise   
  565.  
  566. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  567.  
  568. AutoThread                            # Automatic thread canned cycle     
  569. G76 A[TParams] Q[VBite] R0
  570. G76 X[V] Z[H] R[StartAng] P[Depth] q[Peck1] F[Frate]
  571. end
  572.  
  573. Drill                                 # Drilling canned/manual cycle      
  574. G1 Z[H] F[Frate]
  575. G0 Z[SClear]
  576. end
  577.  
  578. Peck                                  # Pecking canned/manual cycle       
  579. none
  580. end
  581.  
  582. Tap                                   # Tapping canned/manual cycle       
  583. G78 Z[H] F[FRate]
  584. end cancel
  585.  
  586. Ream                                  # Reaming canned/manual cycle       
  587. G1 Z[H] F[FRate]
  588. G0 Z[SClear]
  589. end
  590.  
  591. Cancel                                # Cancel a canned/manual cycle      
  592. G80
  593. end
  594.  
  595. StartCode                             # Start of the program              
  596. O[Program#]
  597. end
  598.  
  599. 1stToolChange                         # First tool change                 
  600. T0
  601. G28 W0
  602. G28 U0
  603. G50 X0 Z0
  604. T[Tool]
  605. G0 X[V]
  606. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  607. Z[H] M[Cool]
  608. End
  609.  
  610. Infeed                                # Enable cutter comp                
  611. G1 X[V] Z[H] D[Dcomp] F[FRate]
  612. end
  613.  
  614. Outfeed                               # Disable cutter comp               
  615. G1 X[V] Z[H] F[FRate]
  616. end
  617.  
  618. ToolChange                            # Secondary tool changes            
  619. G0 Z[ToolH] M5
  620. T0
  621. T[Tool]
  622. G0 X[V]
  623. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  624. Z[H] M[Cool]
  625. End
  626.  
  627. EndCode                               # End of the program                
  628. G0 Z[ToolH]
  629. G28 W0 M5
  630. G28 U0
  631. M30
  632. End
  633.  
  634. name Fanuc 6T
  635.  
  636. O >4
  637. N >3
  638. G >2
  639. X ->3.>4
  640. Z ->3.>4
  641. D >2
  642. I ->3.>4
  643. K ->3.>4
  644. U ->3.>4
  645. W ->3.>4
  646. P ->3.>4
  647. A 60 P
  648. Q ->3.>4
  649. q ->3.>4 Q
  650. R ->3.>4
  651. F >3.>3
  652. T 2
  653. S >4
  654. M >2
  655.  
  656. RevSigns X I                          # List of letters to reverse signs  
  657.  
  658. ModalGs 0 1 2 3 73 76 80 81 82 83 84 85  # List of g codes that are modal    
  659.  
  660. First#? N                             # Y or N  'Output 1st sequence no.  
  661. Sequence#s N 0 1 1                    # Char, freq, incr & start          
  662.  
  663. Comment ( )                           # Begin End comment char.           
  664.  
  665. HCode Z                               # X or X U  'Horizontal char.       
  666. VCode X                               # Y or Y V  'Vertical char.         
  667. FeedCode F                            # Feed rate char.                   
  668.  
  669. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  670. Coolant 8 9 7                         # On, Off & Mist m codes            
  671. SpeedType G 97 96                     # CSS and RPM g codes               
  672. FeedType G 95 94                      # IPR & IPM g codes                 
  673.  
  674. ByDiameter? Y                         # Y or N  'Output X val. by diameter
  675.  
  676. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  677. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  678.  
  679. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  680.  
  681. Inch/MM 20 21                         # Inch & Metric g codes             
  682.  
  683. CtrCode K I                           # I J or R or I J K L               
  684.  
  685. Feed G1                               # Linear move                       
  686. Rapid G0                              # Rapid positioning word            
  687. Cw G2                                 # Circular move clockwise           
  688. Ccw G3                                # Circular move counter clockwise   
  689.  
  690. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  691.  
  692.  
  693. AutoThread                            # Automatic thread canned cycle     
  694. G76 A[TParams] Q[VBite] R0
  695. G76 X[V] Z[H] R[StartAng] P[Depth] q[Peck1] F[Frate]
  696. end
  697.  
  698. Drill                                 # Drilling canned/manual cycle      
  699. G1 Z[H] F[Frate]
  700. G0 Z[SClear]
  701. end
  702.  
  703. Peck                                  # Pecking canned/manual cycle       
  704. none
  705. end
  706.  
  707. Tap                                   # Tapping canned/manual cycle       
  708. G78 Z[H] F[FRate]
  709. end cancel
  710.  
  711. Ream                                  # Reaming canned/manual cycle       
  712. G1 Z[H] F[FRate]
  713. G0 Z[SClear]
  714. end
  715.  
  716. Cancel                                # Cancel a canned/manual cycle      
  717. G80
  718. end
  719.  
  720. StartCode                             # Start of the program              
  721. O[Program#]
  722. T0
  723. end
  724.  
  725. 1stToolChange                         # First tool change                 
  726. G28 W0
  727. G28 U0
  728. G50 X0 Z0
  729. T[Tool]
  730. G0 X[V]
  731. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  732. Z[H] M[Cool]
  733. End
  734.  
  735. Infeed                                # Enable cutter comp                
  736. G1 X[V] Z[H] D[Dcomp] F[FRate]
  737. end
  738.  
  739. Outfeed                               # Disable cutter comp               
  740. G1 X[V] Z[H] F[FRate]
  741. end
  742.  
  743. ToolChange                            # Secondary tool changes            
  744. G0 Z[ToolH] M5
  745. T0
  746. T[Tool]
  747. G0 X[V]
  748. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  749. Z[H] M[Cool]
  750. End
  751.  
  752. EndCode                               # End of the program                
  753. G0 Z[ToolH]
  754. G28 W0 M5
  755. G28 U0
  756. M30
  757. End
  758.  
  759. name GE 550 Absolute
  760.  
  761. N 3
  762. G 2
  763. X ->34
  764. Z ->34
  765. D 2
  766. I ->34
  767. K ->34
  768. F >33
  769. T 3
  770. S 2
  771. M 2
  772.  
  773. ModalGs 0 1 2 3 73 74 76 80 81 82 83 84 85  # List of g codes that are modal    
  774.  
  775. Sequence#s N 1 1 1                    # Char, freq, incr & start          
  776.  
  777. HCode Z                               # X or X U  'Horizontal char.       
  778. VCode X                               # Y or Y V  'Vertical char.         
  779. FeedCode F                            # Feed rate char.                   
  780. Comment ( )                           # Begin End comment char.           
  781.  
  782. Spindle 43 44 45                      # Cw, ccw & stop m codes            
  783. Coolant 8 9 7                         # On, Off & Mist m codes            
  784.  
  785. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  786. ByQuadrants? Y                        # Y or N  'Break arcs at quadrants  
  787.  
  788. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  789.  
  790. Inch/MM 20 21                         # Inch & Metric g codes             
  791.  
  792. CtrCode K I                           # I J or R or I J K L               
  793.  
  794. Feed G1                               # Linear move                       
  795. Rapid F80                             # Rapid positioning word            
  796. Cw G2                                 # Circular move clockwise           
  797. Ccw G3                                # Circular move counter clockwise   
  798.  
  799. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  800.  
  801. Drill                                 # Drilling canned/manual cycle      
  802. Z[Depth] F[FRate]
  803. Z[H]
  804. end
  805. Peck                                  # Pecking canned/manual cycle       
  806. none
  807. end
  808.  
  809. Tap                                   # Tapping canned/manual cycle       
  810. Z[H] F[FRate]
  811. end cancel
  812. Ream                                  # Reaming canned/manual cycle       
  813. Z[H] F[FRate]
  814. end cancel
  815.  
  816. Bore                                  # Boring canned/manual cycle        
  817. Z[H] F[FRate]
  818. Z[SClear]
  819. end
  820.  
  821. Cancel                                # Cancel a canned/manual cycle      
  822. end
  823.  
  824. StartCode                             # Start of the program              
  825. G1 X[WorkV] Z[WorkH] F80
  826. End
  827.  
  828. 1stToolChange                         # First tool change                 
  829. G92 X0 Z[Length]
  830. G90 T[Tool] M[Direct]
  831. G94 S[Speed] M[Cool]
  832. G1 X[V] Z[H] F80
  833. End
  834.  
  835. Infeed                                # Enable cutter comp                
  836. G1 X[V] Z[H] D[Dcomp] F[FRate]
  837. end
  838.  
  839. Outfeed                               # Disable cutter comp               
  840. G1 X[V] Z[H] F[FRate]
  841. end
  842. AutoThread                            # Automatic thread canned cycle     
  843. G32
  844. End
  845.  
  846. ToolChange                            # Secondary tool changes            
  847. G1 X0 Z[LastLength] F80
  848. T0 M1
  849. G92 X0 Z[Length]
  850. G90 T[Tool] M[Direct]
  851. G94 S[Speed] M[Cool]
  852. G1 X[V] Z[H] F80
  853. End
  854.  
  855. EndCode                               # End of the program                
  856. G1 X0 Z[LastLength] F80 M24
  857. M25
  858. T0 M1
  859. G1 X[EndV] Z[EndH] F80
  860. M30
  861. End
  862.  
  863. name GE 550 Incremental
  864.  
  865. N 3
  866. G >2
  867. X ->3.4
  868. Z ->3.4
  869. D 2
  870. I ->3.4
  871. K ->3.4
  872. F >3.3
  873. A >3.3 F
  874. S 2
  875. T 3
  876.  
  877. ModalGs 0 1 2 3 73 74 76 80 81 82 83 84 85  # List of g codes that are modal    
  878.  
  879. Sequence#s N 1 1 1                    # Char, freq, incr & start          
  880.  
  881. Incremental? Y                        # Y or N  'Inc or abs output        
  882.  
  883. HCode Z                               # X or X U  'Horizontal char.       
  884. VCode X                               # Y or Y V  'Vertical char.         
  885. FeedCode F                            # Feed rate char.                   
  886. Comment ( )                           # Begin End comment char.           
  887.  
  888. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  889. Coolant 8 9 7                         # On, Off & Mist m codes            
  890.  
  891. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  892. ByQuadrants? Y                        # Y or N  'Break arcs at quadrants  
  893.  
  894. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  895.  
  896. Inch/MM 20 21                         # Inch & Metric g codes             
  897.  
  898. CtrCode K I                           # I J or R or I J K L               
  899.  
  900. Feed                                  # Linear move                       
  901. Rapid A0.1                            # Rapid positioning word            
  902. Cw                                    # Circular move clockwise           
  903. Ccw                                   # Circular move counter clockwise   
  904.  
  905. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  906.  
  907.  
  908. Drill                                 # Drilling canned/manual cycle      
  909. Z[Depth] F[FRate]
  910. Z[H] A0.1
  911. end
  912.  
  913. AutoThread                            # Automatic thread canned cycle     
  914. G33
  915. End
  916.  
  917. Peck                                  # Pecking canned/manual cycle       
  918. none
  919. end
  920.  
  921. Tap                                   # Tapping canned/manual cycle       
  922. Z[H] F[FRate]
  923. end cancel
  924.  
  925. Ream                                  # Reaming canned/manual cycle       
  926. Z[H] F[FRate]
  927. end cancel
  928.  
  929. Bore                                  # Boring canned/manual cycle        
  930. Z[H] F[FRate]
  931. Z[SClear] A0.1
  932. end
  933.  
  934. Cancel                                # Cancel a canned/manual cycle      
  935. end
  936.  
  937. StartCode                             # Start of the program              
  938. End
  939.  
  940. 1stToolChange                         # First tool change                 
  941. S9 T[Tool]
  942. X[V] Z[H] A0.1
  943. End
  944.  
  945. Infeed                                # Enable cutter comp                
  946. X[V] Z[H] D[Dcomp] F[FRate]
  947. end
  948.  
  949. Outfeed                               # Disable cutter comp               
  950. X[V] Z[H]
  951. end
  952.  
  953. ToolChange                            # Secondary tool changes            
  954. T0
  955. X[ToolV] Z[ToolH] A0.1
  956. S9 T[Tool]
  957. X[V] Z[H]
  958. End
  959.  
  960. EndCode                               # End of the program                
  961. T0
  962. X[ToolV] Z[ToolH] A0.1
  963. End
  964.  
  965. name Generic
  966.  
  967. % 00
  968. ! 00
  969. O 4
  970. N 3
  971. G 2
  972. X ->3.>4
  973. x ->3.>4 X
  974. Z ->3.>4
  975. D 2
  976. I ->3.>4
  977. K ->3.>4
  978. U ->3.>4
  979. W ->3.>4
  980. P ->3.>4
  981. A 60 P
  982. Q ->3.>4
  983. q ->3.>4 Q
  984. R ->3.>4
  985. F >3.>3
  986. T 2
  987. t 2
  988. S >4
  989. M 2
  990.  
  991. ModalLetters X Z F                    # List of letters that are modal    
  992.  
  993. ModalGs 0 1 2 3 73 76 80 81 82 83 84 85  # List of g codes that are modal    
  994.  
  995. Sequence#s N 0 1 1                    # Char, freq, incr & start          
  996. First#? N                             # Y or N  'Output 1st sequence no.  
  997. Last#? N                              # Y or N  'Output last sequence no. 
  998.  
  999. Comment ( )                           # Begin End comment char.           
  1000.  
  1001. HCode Z                               # X or X U  'Horizontal char.       
  1002. VCode X                               # Y or Y V  'Vertical char.         
  1003. FeedCode F                            # Feed rate char.                   
  1004.  
  1005. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  1006. Coolant 8 9 7                         # On, Off & Mist m codes            
  1007. DComp 41 42 40                        # Left, Right & Cancel m codes      
  1008. LComp 43 49                           # On & Off codes                    
  1009.  
  1010. SpeedType G 97 96                     # CSS and RPM g codes               
  1011. FeedType G 95 94                      # IPR & IPM g codes                 
  1012.  
  1013. ByDiameter? Y                         # Y or N  'Output X val. by diameter
  1014. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  1015. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  1016. CtrCode R                             # I J or R or I J K L               
  1017.  
  1018. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  1019. Inch/MM 20 21                         # Inch & Metric g codes             
  1020.  
  1021. Spaces? Y                             # Y or N  'Spaces between words     
  1022. Incremental? N                        # Y or N  'Inc or abs output        
  1023.  
  1024. Feed G1                               # Linear move                       
  1025. Rapid G0                              # Rapid positioning word            
  1026. Cw G2                                 # Circular move clockwise           
  1027. Ccw G3                                # Circular move counter clockwise   
  1028.  
  1029. RevSigns X x                          # List of letters to reverse signs  
  1030.  
  1031. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  1032.  
  1033. AutoThread                            # Automatic thread canned cycle     
  1034. G76 A[TParams] Q[VBite] R0
  1035. G76 X[V] Z[H] R[StartAng] P[Depth] q[Peck1] F[Frate]
  1036. end
  1037.  
  1038. Drill                                 # Drilling canned/manual cycle      
  1039. G74 Z[Depth] F[Frate]
  1040. end
  1041.  
  1042. Peck                                  # Pecking canned/manual cycle       
  1043. G74 Z[Depth] K[VBite] F[Frate]
  1044. end
  1045.  
  1046. Ream                                  # Reaming canned/manual cycle       
  1047. G1 Z[H] F[FRate]
  1048. G1 Z[VClear]
  1049. end
  1050.  
  1051. Bore                                  # Boring canned/manual cycle        
  1052. G1 Z[H] F[FRate]
  1053. G1 Z[VClear]
  1054. end
  1055.  
  1056. Back                                  # Back boring canned/manual cycle   
  1057. G1 Z[H] F[FRate]
  1058. G1 Z[VClear]
  1059. end
  1060.  
  1061. Cancel                                # Cancel a canned/manual cycle      
  1062. G80
  1063. end
  1064.  
  1065. StartCode                             # Start of the program              
  1066. %0
  1067. !0 O[Program#]
  1068. end
  1069.  
  1070. 1stToolChange                         # First tool change                 
  1071. G50 x[ToolH] Z[ToolV]
  1072. G0 T[Tool] t[Tool] M42
  1073. G[SpeedType] S[Speed] M[Direct]
  1074. X[V] Z[H] M[Cool]
  1075. End
  1076.  
  1077. Infeed                                # Enable cutter comp                
  1078. G1 G[Side] X[V] Z[H] D[Dcomp] F[FRate]
  1079. end
  1080.  
  1081. Outfeed                               # Disable cutter comp               
  1082. G1 G40 X[V] Z[H] F[FRate]
  1083. end
  1084.  
  1085. ToolChange                            # Secondary tool changes            
  1086. M[CoolantOff]
  1087. T[LastTool] t0
  1088. G50 x[ToolH] Z[ToolV]
  1089. G0 T[Tool] t[Tool] M42
  1090. G[SpeedType] S[Speed] M[Direct]
  1091. X[V] Z[H] M[Cool]
  1092. End
  1093.  
  1094. EndCode                               # End of the program                
  1095. G0 x[ToolV] Z[ToolH] M[CoolantOff]
  1096. T[Tool] t0 M5
  1097. M2
  1098. End
  1099.  
  1100.   #LineCode
  1101.   #G1 X[V] Z[H] F[Frate]
  1102.   #End
  1103.  
  1104.   #RapidCode
  1105.   #G0 X[V] Z[H]
  1106.   #End
  1107.  
  1108.   #CcwCode
  1109.   #G3 X[V] Z[H] R[ArcRad]
  1110.   #End
  1111.  
  1112.   #CwCode
  1113.   #G2 X[V] Z[H] R[ArcRad]
  1114.   #End
  1115.  
  1116.   #Tap
  1117.   #G78 Z[H] F[FRate]
  1118.   #end cancel
  1119.  
  1120.   #LTap
  1121.   #G78 Z[H] F[FRate]
  1122.   #end cancel
  1123.  
  1124.   #Custom1
  1125.   #End
  1126.  
  1127.   #Custom2
  1128.   #End
  1129.  
  1130.   #Custom3
  1131.   #End
  1132.  
  1133.   #Upon Turret
  1134.   #M13
  1135.   #End
  1136.  
  1137. Replace " t" with ""
  1138.  
  1139. name Ikegai Fanuc 5T
  1140.  
  1141. O >4
  1142. N >3
  1143. G >2
  1144. X ->3.>4
  1145. Z ->3.>4
  1146. D >2
  1147. I ->3.>4
  1148. K ->3.>4
  1149. U ->3.>4
  1150. W ->3.>4
  1151. P ->3.>4
  1152. A 60 P
  1153. Q ->3.>4
  1154. q >4 Q
  1155. R ->3.>4
  1156. F >3.>3
  1157. T 2
  1158. S >4
  1159. M >2
  1160.  
  1161. ModalGs 0 1 2 3 73 76 80 81 82 83 84 85  # List of g codes that are modal    
  1162.  
  1163. First#? N                             # Y or N  'Output 1st sequence no.  
  1164. Sequence#s N 0 1 1                    # Char, freq, incr & start          
  1165. Comment ( )                           # Begin End comment char.           
  1166.  
  1167. HCode Z                               # X or X U  'Horizontal char.       
  1168. VCode X                               # Y or Y V  'Vertical char.         
  1169. FeedCode F                            # Feed rate char.                   
  1170.  
  1171. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  1172. Coolant 8 9 7                         # On, Off & Mist m codes            
  1173. SpeedType G 97 96                     # CSS and RPM g codes               
  1174. FeedType G 95 94                      # IPR & IPM g codes                 
  1175.  
  1176. ByDiameter? Y                         # Y or N  'Output X val. by diameter
  1177.  
  1178. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  1179. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  1180.  
  1181. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  1182.  
  1183. Inch/MM 20 21                         # Inch & Metric g codes             
  1184.  
  1185. CtrCode I K                           # I J or R or I J K L               
  1186.  
  1187. Feed G1                               # Linear move                       
  1188. Rapid G0                              # Rapid positioning word            
  1189. Cw G2                                 # Circular move clockwise           
  1190. Ccw G3                                # Circular move counter clockwise   
  1191.  
  1192. RevSigns X I                          # List of letters to reverse signs  
  1193.  
  1194. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  1195.  
  1196. AutoThread                            # Automatic thread canned cycle     
  1197. G76 A[TParams] Q[VBite] R0
  1198. G76 X[V] Z[H] R[StartAng] P[Depth] q[Peck1] F[Frate]
  1199. end
  1200.  
  1201. Drill                                 # Drilling canned/manual cycle      
  1202. G1 Z[H] F[Frate]
  1203. G0 Z[SClear]
  1204. end
  1205.  
  1206. Peck                                  # Pecking canned/manual cycle       
  1207. none
  1208. end
  1209.  
  1210. Tap                                   # Tapping canned/manual cycle       
  1211. G78 Z[H] F[FRate]
  1212. end cancel
  1213.  
  1214. Ream                                  # Reaming canned/manual cycle       
  1215. G1 Z[H] F[FRate]
  1216. G0 Z[SClear]
  1217. end
  1218.  
  1219. Cancel                                # Cancel a canned/manual cycle      
  1220. G80
  1221. end
  1222.  
  1223. StartCode                             # Start of the program              
  1224. O[Program#]
  1225. end
  1226.  
  1227. 1stToolChange                         # First tool change                 
  1228. T[Tool]
  1229. G0 Z.2
  1230. X6 Z6
  1231. T[Tool] M9
  1232. M1
  1233. G50 X6 Z6 T[Tool] S[Speed] M38
  1234. G[SpeedType] S[Speed] M[Direct]
  1235. T[Tool] M8
  1236. G0 X[V] Z[H]
  1237. End
  1238.  
  1239. Infeed                                # Enable cutter comp                
  1240. G1 X[V] Z[H] D[Dcomp] F[FRate]
  1241. end
  1242.  
  1243. Outfeed                               # Disable cutter comp               
  1244. G1 X[V] Z[H] F[FRate]
  1245. end
  1246.  
  1247. ToolChange                            # Secondary tool changes            
  1248. X6 Z6
  1249. T[Tool] M9
  1250. M1
  1251. G50 X6 Z6 T[Tool] S[Speed] M38
  1252. G[SpeedType] S[Speed] M[Direct]
  1253. T[Tool] M8
  1254. G0 X[V] Z[H]
  1255. End
  1256.  
  1257. EndCode                               # End of the program                
  1258. G0 Z[ToolH]
  1259. G28 W0 M5
  1260. G28 U0
  1261. M30
  1262. End
  1263.  
  1264. name Mitsubishi L0
  1265.  
  1266. O >4
  1267. N >4
  1268. G >2
  1269. X ->3.>4
  1270. Z ->3.>4
  1271. d >2 D
  1272. I ->3.>4
  1273. K ->3.>4
  1274. U ->3.>4
  1275. W ->3.>4
  1276. D ->3.>4
  1277. H >2
  1278. F >3.>3
  1279. T 4
  1280. S >4
  1281. M >2
  1282.  
  1283. RevSigns X I                          # List of letters to reverse signs  
  1284.  
  1285. ModalGs 0 1 2 3 73 74 76 80 81 82 83 84 85  # List of g codes that are modal    
  1286.  
  1287. Sequence#s N 1 1 1                    # Char, freq, incr & start          
  1288. First#? N                             # Y or N  'Output 1st sequence no.  
  1289.  
  1290. Comment ( )                           # Begin End comment char.           
  1291.  
  1292. HCode Z                               # X or X U  'Horizontal char.       
  1293. VCode X                               # Y or Y V  'Vertical char.         
  1294. FeedCode F                            # Feed rate char.                   
  1295.  
  1296. RevTurret2? Y
  1297. HCode2 Z
  1298. VCode2 X
  1299.  
  1300. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  1301. Coolant 8 9 7                         # On, Off & Mist m codes            
  1302. SpeedType G 97 96                     # CSS and RPM g codes               
  1303. FeedType G 95 94                      # IPR & IPM g codes                 
  1304.  
  1305. ByDiameter? Y                         # Y or N  'Output X val. by diameter
  1306.  
  1307. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  1308. ByQuadrants? Y                        # Y or N  'Break arcs at quadrants  
  1309.  
  1310. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  1311.  
  1312. Inch/MM 20 21                         # Inch & Metric g codes             
  1313.  
  1314. CtrCode K I                           # I J or R or I J K L               
  1315.  
  1316. Feed G1                               # Linear move                       
  1317. Rapid G0                              # Rapid positioning word            
  1318. Cw G2                                 # Circular move clockwise           
  1319. Ccw G3                                # Circular move counter clockwise   
  1320.  
  1321. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  1322.  
  1323. AutoThread                            # Automatic thread canned cycle     
  1324. G32
  1325. End
  1326.  
  1327. Drill                                 # Drilling canned/manual cycle      
  1328. G1 Z[H] F[Frate]
  1329. G0 Z[SClear]
  1330. end
  1331.  
  1332. Peck                                  # Pecking canned/manual cycle       
  1333. none
  1334. end
  1335.  
  1336. Tap                                   # Tapping canned/manual cycle       
  1337. G78 Z[H] F[FRate]
  1338. end cancel
  1339.  
  1340. Ream                                  # Reaming canned/manual cycle       
  1341. G1 Z[H] F[FRate]
  1342. G0 Z[SClear]
  1343. end
  1344.  
  1345. Cancel                                # Cancel a canned/manual cycle      
  1346. G80
  1347. end
  1348.  
  1349. StartCode                             # Start of the program              
  1350. O[Program#]
  1351. End
  1352.  
  1353. 1stToolChange                         # First tool change                 
  1354. T0
  1355. G28 W0
  1356. G28 U0
  1357. G50 X0 Z0
  1358. M1
  1359. T[Tool]
  1360. G0 X[V]
  1361. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  1362. Z[H] M[Cool]
  1363. End
  1364.  
  1365. Infeed                                # Enable cutter comp                
  1366. G1 X[V] Z[H] d[Dcomp] F[FRate]
  1367. end
  1368.  
  1369. Outfeed                               # Disable cutter comp               
  1370. G1 X[V] Z[H] F[FRate]
  1371. end
  1372.  
  1373. ToolChange                            # Secondary tool changes            
  1374. G0 Z[ToolH] M5
  1375. T0
  1376. M1
  1377.  
  1378. T[Tool]
  1379. G0 X[V]
  1380. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  1381. Z[H] M[Cool]
  1382. End
  1383.  
  1384. EndCode                               # End of the program                
  1385. G0 Z[ToolH] X[ToolV]
  1386. G28 W0 M5
  1387. G28 U0
  1388. M30
  1389. End
  1390.  
  1391. name Mori-Seiki SL25
  1392.  
  1393. % 00
  1394. N >4
  1395. G 2
  1396. X ->34
  1397. Z ->34
  1398. D 2
  1399. I ->34
  1400. K ->34
  1401. U ->34
  1402. W ->34
  1403. P ->34
  1404. A 60 P
  1405. Q ->34
  1406. q ->34 Q
  1407. R ->34
  1408. F >34
  1409. T 4
  1410. S >4
  1411. M 2
  1412.  
  1413. ModalGs 0 1 2 3 76 80 81 82 83 84 85  # List of g codes that are modal    
  1414.  
  1415. Sequence#s N 1 10 10                  # Char, freq, incr & start          
  1416. First#? y                             # Y or N  'Output 1st sequence no.  
  1417.  
  1418. Comment ( )                           # Begin End comment char.           
  1419.  
  1420. HCode Z                               # X or X U  'Horizontal char.       
  1421. VCode X                               # Y or Y V  'Vertical char.         
  1422. FeedCode F                            # Feed rate char.                   
  1423.  
  1424. Coolant 8 9 8                         # On, Off & Mist m codes            
  1425. SpeedType G 97 96                     # CSS and RPM g codes               
  1426. FeedType G 95 94                      # IPR & IPM g codes                 
  1427.  
  1428.  
  1429. ByDiameter? Y                         # Y or N  'Output X val. by diameter
  1430. RevSigns X I                          # List of letters to reverse signs
  1431. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  1432.  
  1433. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  1434.  
  1435. Inch/MM 20 21                         # Inch & Metric g codes             
  1436.  
  1437. CtrCode K I                           # I J or R or I J K L               
  1438.  
  1439. Feed G1                               # Linear move                       
  1440. Rapid G0                              # Rapid positioning word            
  1441. Cw G3                                 # Circular move clockwise           
  1442. Ccw G2                                # Circular move counter clockwise   
  1443.  
  1444. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  1445.  
  1446. AutoThread                            # Automatic thread canned cycle     
  1447. G76 A[TParams] Q[VBite] R0
  1448. G76 X[V] Z[H] R[StartAng] P[Depth] q[Peck1] F[Frate]
  1449. end
  1450.  
  1451. Drill                                 # Drilling canned/manual cycle      
  1452. G1 Z[Depth] F[FRate]
  1453. G0 Z[SClear]
  1454. end
  1455.  
  1456. Peck                                  # Pecking canned/manual cycle       
  1457. None
  1458. end
  1459.  
  1460. Tap                                   # Tapping canned/manual cycle       
  1461. G84 Z[H] F[FRate]
  1462. end
  1463.  
  1464. Ream                                  # Reaming canned/manual cycle       
  1465. G85 Z[H] F[FRate]
  1466. end
  1467.  
  1468. Bore                                  # Boring canned/manual cycle        
  1469. G74 R0
  1470. G74 Z[H] R[SClear] F[FRate]
  1471. end
  1472.  
  1473. Cancel                                # Cancel a canned/manual cycle      
  1474. G80
  1475. end
  1476.  
  1477. StartCode                             # Start of the program              
  1478. %0
  1479. End
  1480.  
  1481. 1stToolChange                         # First tool change                 
  1482. G0 M1
  1483. G50 X0 Z0
  1484. G0 T100
  1485. G0 X0 Z0 T101
  1486. M11
  1487. M10
  1488. G0 X0 Z0 T100
  1489. T[Tool]
  1490. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  1491. G0 X[V] Z[H] T[Comp] M[Cool]
  1492. End
  1493.  
  1494. Infeed                                # Enable cutter comp                
  1495. G1 X[V] Z[H] D[Dcomp] F[FRate]
  1496. end
  1497.  
  1498. Outfeed                               # Disable cutter comp               
  1499. G1 X[V] Z[H] F[FRate]
  1500. end
  1501.  
  1502. ToolChange                            # Secondary tool changes            
  1503. G0 Z[SClear]
  1504. X0 T[LastTool]
  1505. T[Tool]
  1506. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  1507. G0 X[V] Z[H] T[Comp] M[Cool]
  1508. End
  1509.  
  1510. EndCode                               # End of the program                
  1511. G0 X0 Z0 T[Tool]
  1512. M5
  1513. M30
  1514. %0
  1515. End
  1516.  
  1517. name Yasnac 2000B
  1518.  
  1519. % 00
  1520. N >4 Mult 10
  1521. G >2
  1522. X ->3.>4
  1523. Z ->3.>4
  1524. D >2
  1525. I ->3.>4
  1526. K ->3.>4
  1527. U ->3.>4
  1528. W ->3.>4
  1529. P ->3.>4
  1530. A 60 P
  1531. Q ->3.>4
  1532. q ->3.>4 Q
  1533. R ->3.>4
  1534. F >3.>3
  1535. T 2 
  1536. t 2 ""
  1537. S >4
  1538. M >2
  1539.  
  1540. ModalGs 0 1 2 3 73 76 80 81 82        # List of g codes that are modal    
  1541.  
  1542. Sequence#s N 0 1 1                    # Char, freq, incr & start          
  1543. First#? N                             # Y or N  'Output 1st sequence no.  
  1544. Last#? N                              # Y or N  'Output last sequence no. 
  1545.  
  1546. Comment ( )                           # Begin End comment char.           
  1547.  
  1548. HCode Z                               # X or X U  'Horizontal char.       
  1549. VCode X                               # Y or Y V  'Vertical char.         
  1550. FeedCode F                            # Feed rate char.                   
  1551.  
  1552. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  1553. Coolant 8 9 7                         # On, Off & Mist m codes            
  1554. SpeedType G 97 96                     # CSS and RPM g codes               
  1555. FeedType G 95 94                      # IPR & IPM g codes                 
  1556.  
  1557. ByDiameter? Y                         # Y or N  'Output X val. by diameter
  1558. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  1559. ByQuadrants? Y                        # Y or N  'Break arcs at quadrants  
  1560.  
  1561. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  1562.  
  1563. Inch/MM 20 21                         # Inch & Metric g codes             
  1564.  
  1565. CtrCode K I                           # I J or R or I J K L               
  1566.  
  1567. Spaces? N                             # Y or N  'Spaces between words     
  1568.  
  1569. Feed G1                               # Linear move                       
  1570. Rapid G0                              # Rapid positioning word            
  1571. Cw G3                                 # Circular move clockwise           
  1572. Ccw G2                                # Circular move counter clockwise   
  1573.  
  1574. RevSigns X I                          # List of letters to reverse signs  
  1575. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  1576.  
  1577. Drill                                 # Drilling canned/manual cycle      
  1578. G1 Z[H] F[Frate]
  1579. G0 Z[SClear]
  1580. end
  1581.  
  1582. AutoThread                            # Automatic thread canned cycle     
  1583. G76 A[TParams] Q[VBite] R0
  1584. G76 X[V] Z[H] R[StartAng] P[Depth] q[Peck1] F[Frate]
  1585. end
  1586.  
  1587. Peck                                  # Pecking canned/manual cycle       
  1588. none
  1589. end
  1590.  
  1591. Tap                                   # Tapping canned/manual cycle       
  1592. G78 Z[H] F[FRate]
  1593. end cancel
  1594.  
  1595. Ream                                  # Reaming canned/manual cycle       
  1596. G1 Z[H] F[FRate]
  1597. G0 Z[SClear]
  1598. end
  1599.  
  1600. Cancel                                # Cancel a canned/manual cycle      
  1601. G80
  1602. end
  1603.  
  1604. StartCode                             # Start of the program              
  1605. N[Block]
  1606. end
  1607.  
  1608. 1stToolChange                         # First tool change                 
  1609. G50 X8.0 Z5.0
  1610. T[Tool] t[Dcomp]
  1611. G0 X[V]
  1612. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  1613. Z[H] M[Cool]
  1614. End
  1615.  
  1616. Infeed                                # Enable cutter comp                
  1617. G1 X[V] Z[H] D[Dcomp] F[FRate]
  1618. end
  1619.  
  1620. Outfeed                               # Disable cutter comp               
  1621. G1 X[V] Z[H] F[FRate]
  1622. end
  1623.  
  1624. ToolChange                            # Secondary tool changes            
  1625. G0 X8.0 Z5.0 M5
  1626. T[LastTool] t00
  1627. N[Block]
  1628. G50 X8.0 Z5.0
  1629. T[Tool] t[Dcomp]
  1630. G0 X[V]
  1631. G[FeedType] G[SpeedType] S[Speed] M[Direct]
  1632. Z[H] M[Cool]
  1633. End
  1634.  
  1635. EndCode                               # End of the program                
  1636. G0 X8.0 Z5.0
  1637. G28 W0 M5
  1638. G28 U0 T00 t00
  1639. M30
  1640. %0
  1641. End
  1642.